package com.galaxy.coupon;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 优惠券模块
 */

@EnableScheduling
@EnableFeignClients(basePackages = {"com.galaxy.coupon.feign"})
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.galaxy.coupon.mapper")
public class GalaxyCouponApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(GalaxyCouponApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println("优惠卷模块启动成功");
    }
}
